package com.fhMall.api;

import com.alibaba.fastjson.JSONObject;
import com.fh.common.api.vo.Result;
import com.fh.modules.ums.entity.UmsPartnerApply;
import org.springframework.web.bind.annotation.*;

/**
 * 程序名：.java<br>
 * 程序功能 <br>
 * 作成者：xianlin <br>
 * 日期：2019-10-17 9:55<br>
 * 修改履历 <br>
 * 项目名    状态      作成者      日期   <br>
 * --------------------------------------- <br>
 * 新规      xianlin   2019-10-17 9:55 <br>
 * ----------------------------- <br>
 */
public interface MemberFacade {

    @GetMapping("/ums/member/queryUmsMemberInfo")
    @ResponseBody
    String queryMemberByOpenId(@RequestParam(name = "openId") String openId);

    @PostMapping("/ums/member/add")
    @ResponseBody
    String saveMember(@RequestBody JSONObject jsonObject);

    @PutMapping("/ums/member/editSelf")
    @ResponseBody
    String putMember(@RequestBody JSONObject jsonObject);

    @GetMapping("/ums/member/queryMemberSimpleInfo")
    @ResponseBody
    String getMemberInfo(@RequestParam(name = "memberId") Integer memberId);

    @GetMapping("/ums/member/queryMemberInfo")
    @ResponseBody
    Result getPartnerInfo(@RequestParam(name = "memberId") Integer memberId, @RequestParam(name = "shareUrl") String shareUrl);

    @PostMapping("/ums/umsPartnerApply/apply")
    @ResponseBody
    String apply(@RequestBody UmsPartnerApply umsPartnerApply);

    @GetMapping("/ums/umsMember/queryBuddy")
    @ResponseBody
    Result queryBuddy(@RequestParam(name = "partnerId") Integer partnerId,
                      @RequestParam(name = "pageNo") Integer pageNo,
                      @RequestParam(name = "pageSize") Integer pageSize);

    @GetMapping("/ums/umsIntegrationChang/usersList")
    @ResponseBody
    Result queryUsersIntegrationChange(@RequestParam(name = "memberId") Integer memberId,
                                       @RequestParam(name = "pageNo") Integer pageNo,
                                       @RequestParam(name = "pageSize") Integer pageSize);
}
